package com.greyu.ysj.mapper;

import com.greyu.ysj.entity.CbtNews;
import com.greyu.ysj.entity.CbtNewsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CbtNewsMapper {
    long countByExample(CbtNewsExample example);

    int deleteByExample(CbtNewsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CbtNews record);

    int insertSelective(CbtNews record);

    List<CbtNews> selectByExample(CbtNewsExample example);

    CbtNews selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CbtNews record, @Param("example") CbtNewsExample example);

    int updateByExample(@Param("record") CbtNews record, @Param("example") CbtNewsExample example);

    int updateByPrimaryKeySelective(CbtNews record);

    int updateByPrimaryKey(CbtNews record);
    
    List<String> selectTitles(Integer rows);
}